
$(document)
		.ready(
				function() {
					
					// turn to inline mode
					$.fn.editable.defaults.mode = 'inline';
					
					
					$("#example-paper").tablecloth({
						theme : "paper",
						striped : true,
						condensed : true
					});
					
					$(".alternate").tablecloth({
						theme : "paper",
						striped : true,
						condensed : true
					});
					
					$(".condition").tablecloth({
						theme : "paper",
						striped : true,
						condensed : true
					});
					
					
					$('#startdate').datetimepicker({
						language : 'en',
						pickTime : false
					});

					
					
					$('.editable a')
							.editable(
									{
										
										url : '/req1/updatemainflow.json',
										title : 'Edit Description',
										success : function(data, config) {
											var msg = 'New user created! Now editables submit individually.';
											$('#msg').addClass('alert-success')
													.removeClass('alert-error')
													.html(msg).show();
										}
									});
					
					
					
					$('html, body').animate({
				         scrollTop: $("#"+idscroll).offset().top
				     }, 2000);

				});